<?php 
if(isDevMode()) {
   PUtil::loadJs('/apps/jobposition/js/postjob.js');
} else {
   PUtil::loadJs('static/js/apps/jobpos.postjob.min.js');
}

$lang = PFactory::getLanguage();
$lang->load("com_jobs", JPATH_SITE, "zh-CN");
$jobdetails = $_['jobdetails'];
$type = $_['type'];

$syncing_51job = $syncing_zhilian = $syncing_jiancai = $syncing_lagou = null;
$sources = "";

if ($type != 'add') {
   $syncing_sources = json_decode($jobdetails->syncing_sources,true) ? json_decode($jobdetails->syncing_sources,true) : null;
   if ($syncing_sources) {
      $syncing_51job = in_array('51job', $syncing_sources) ? true : false;
      $syncing_zhilian = in_array('zhilian', $syncing_sources) ? true : false;
      $syncing_lagou = in_array('lagou', $syncing_sources) ? true : false;
      $syncing_jiancai = in_array('jiancai', $syncing_sources) ? true : false;
      $sources = implode(',', $syncing_sources);
   }
}

$editor = AjaxJEditor::getInstance("jtinymce");

$params = array('mode'=>1, 'devmode'=>(isDevMode()?1:0));
if(isDevMode()) {
   $params['base_path'] = OC_Helper::linkTo("", "themes/jobs/core/html/editor");
   $params['content_css_link'] = OC_Helper::linkTo("", "themes/jobs/core/css/editor.css");
}

echo $editor->loadJs($params);

?>
<script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('jobposition/js', 'jobposition.php'));?>"></script>
<form id="job_position_form" action="<?php echo OC_Helper::linkToRoute("jobpos_savejob"); ?>" method="post" data-sources='<?=$sources?>'>
<div class="hr_settingwrap clearfix" id="job_position_edit" data-type="<?php echo $type; ?>">
   <div class="form-horizontal editaccount_section pull-left bluewrap_section" style="width:100%; margin-top:0px;">
     <!-- FIXME: how sync postinfo -->
     <div class="control-group">
       <label class="control-label" for="">推送到：</label>
       <div class="controls">
         <label class="checkbox inline sync_ctl" id="syncs_51job"  data-source="51job">
            <input autocomplete="off" type="checkbox" name="syncto[]" <?php echo $syncing_51job ? 'checked="checked"' : ''?> value="51job" /> 
            <div class="synchronous_info" style="width:82px;"><i class="config_51"></i>&nbsp;前程无忧</div>
         </label>
         <label class="checkbox inline sync_ctl" id="syncs_zhilian" data-source="zhilian">
            <input autocomplete="off" type="checkbox" name="syncto[]" <?php echo $syncing_zhilian ? 'checked="checked"' : ''?> value="zhilian" /> 
            <div class="synchronous_info" style="width:82px;"><i class="config_zhilian"></i>&nbsp;智联招聘</div>
         </label>
         <label class="checkbox inline sync_ctl" id="syncs_lagou" data-source="lagou">
            <input autocomplete="off" type="checkbox" name="syncto[]" <?php echo $syncing_lagou ? 'checked="checked"' : ''?> value="lagou" /> 
            <div class="synchronous_info" style="width:55px;"><i class="config_lagou"></i>&nbsp;拉勾</div>
         </label>
         <label class="checkbox inline sync_ctl" id="syncs_jiancai" data-source="jiancai">
            <input autocomplete="off" type="checkbox" name="syncto[]" <?php echo $syncing_jiancai ? 'checked="checked"' : ''?> value="jiancai" /> 
            <div class="synchronous_info" style="width:82px;"><i class="config_jianzhu"></i>&nbsp;建筑英才</div>
         </label>
       </div>
     </div>
     <input type="hidden" name="job_id" value="<?php echo $type=='add' ? 0 : $jobdetails->id;?>">
     <input type="hidden" name="lagou_job_id" value="<?php echo empty($jobdetails->lagou_job_id) ? 0 : $jobdetails->lagou_job_id;?>">
     <input type="hidden" name="requesttoken" value="<?php echo $_['requesttoken'] ?>" id="requesttoken">
   </div>

   <div class="form-horizontal editaccount_section pull-left" style="width:530px; margin-bottom:0px;">
     <div class="control-group">
       <label class="control-label key" for=""><em class="redstar">*</em> 职位名称：</label>
       <div class="controls">
       <?php 
          echo $type=='add' ? '<input autocomplete="off" type="text" name="job_title" value="" class="input-medium required"/>' : '<input type="hidden" name="job_title" value="'.$jobdetails->job_title.'"><span>'.$jobdetails->job_title.'</span>' ;
       ?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for=""><em class="redstar">*</em> 招聘人数：</label>
       <div class="controls">
         <input autocomplete="off" type="text" name="num_needed" value="<?php echo $type=='add' ? '0' : $jobdetails->num_needed;?>" class="input-medium required"/> <span class="medium">0表示若干个</span>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for=""><em class="redstar">*</em> 工作地点：</label>
       <input autocomplete="off" type="hidden" id="location_ids" name="location_ids" value="<?php echo $type=='add' ? '' : $jobdetails->id_city;?>">
       <div class="controls">
       <?php 
          if($type == 'add'){
             echo '<input autocomplete="off" type="text" id="location" name="location" value="" readonly class="input-xlarge required" style="cursor:pointer;"/> <a href="javascript:;" class="btn" id="selectcity_btn">选择</a>';
          }else{
             if(!empty($jobdetails->id_city)){
                echo $jobdetails->state == $jobdetails->city ? '<span>'.$jobdetails->state.'</span>' : '<span>'.$jobdetails->state.'-'.$jobdetails->city.'</span>';
             }else{
                echo '<span>'.$jobdetails->state.'</span>';
             }          
          }
       ?>
         <label for="location" class="error" style="display:none">该项必须填写</label>
         <input autocomplete="off" type="hidden" id="jobpos_state" name="jobpos_state" value="<?php echo $type=='add' ? '' : $jobdetails->state;?>" />
         <input autocomplete="off" type="hidden" id="jobpos_id_state" name="jobpos_id_state" value="<?php echo $type=='add' ? 0 : $jobdetails->id_state;?>" />
         <input autocomplete="off" type="hidden" id="jobpos_id_city" name="jobpos_id_city" value="<?php echo $type=='add' ? 0 : $jobdetails->id_city;?>" />
       </div>
     </div>
     <!-- zhilian city start -->
     <?php if($type=='edit'):?>
      <div id="zhilian_city_div" class="control-group" style="display:none;">
         <label class="control-label medium" for="" style="color:#ff6600;">智联工作地点：</label>
            <div id="zhilian_city_show" class="controls" style="display:none;">
               <span id="zhilian_id_city_html">请选择工作地点</span>
               <a class="medium cityeditbtn" data-source="zhilian" data-seq="1" href="javascript:;" id="edit_zhilian_city"><img src="/images/3/greenedit.png"></a>
            </div>   
         <div id="zhilian_city_edit" class="controls" style="display:none;">
            <input autocomplete="off" type="text" name="zhilian_city_text" id="zhilian_city_text" class="input-xlarge required thirdparty_location" style="cursor:pointer;"  data-type="zhilian_city" data-source="zhilian" readonly value="" disabled="disabled"/>
            <a href="javascript:;" class="btn thirdparty_location" data-type="zhilian_city" data-source="zhilian" id="selectcity_zhilian_btn">选择</a>
            <label for="zhilian_city_text" class="error" style="display:none">该项必须填写</label>
         </div> 
         <input autocomplete="off" type="hidden" name="zhilian_id_city" id="zhilian_id_city" value="">
      </div>
      <?php endif;?>
     <!-- zhilian city end -->
          
     <div class="control-group">
       <label class="control-label" for=""><em class="redstar">*</em> 职能类别1：</label>
       <div class="controls">
         <input autocomplete="off" type="hidden" name="id_pos_type" id="id_pos_type" value="<?php echo $type=='add' ? '' : $jobdetails->id_pos_type;?>">
         <input autocomplete="off" type="text" style="cursor:pointer;" name="id_pos_type_text" id="id_pos_type_text" data-type="id_pos_type" data-source="pipapai" value="<?php echo $type=='add' ? '' : $jobdetails->position;?>" readonly class="input-xlarge showposcateg required"/>
         <a href="javascript:;" class="btn showposcateg" data-type="id_pos_type" data-source="pipapai" id="selectwork_btn">选择</a>
         <label for="id_pos_type_text" class="error" style="display:none">该项必须填写</label>
       </div>
     </div>

   <div id="zhilian_pos_div1" class="control-group" style="display:none;">
      <label class="control-label medium" for="" style="color:#ff6600;">对应智联职能1：</label>
      <div id="zhilian_pos1_show" class="controls" style="display:none;">
         <span id="zhilian_id_pos_type_html">请选择职能类别</span>
         <a class="medium poseditbtn" data-source="zhilian" data-seq="1" href="javascript:;" id="edit_zhilian_pos1"><img src="/images/3/greenedit.png"></a>
      </div>

      <div id="zhilian_pos1_edit" class="controls" style="display:block;">
         <input autocomplete="off" type="text" name="zhilian_id_pos_type_text" id="zhilian_id_pos_type_text" class="input-xlarge showposcateg required" style="cursor:pointer;"  data-type="zhilian_id_pos_type" data-source="zhilian" readonly value="" disabled="disabled"/>
         <a href="javascript:;" class="btn showposcateg" data-type="zhilian_id_pos_type" data-source="zhilian" id="selectwork_zhilian_btn1">选择</a>
         <label for="zhilian_id_pos_type_text" class="error" style="display:none">该项必须填写</label>
      </div>

      <input autocomplete="off" type="hidden" name="zhilian_id_pos_type" id="zhilian_id_pos_type" value="" />
   </div>

   <div id="lagou_pos_div1" class="control-group" style="display:none;">
      <label class="control-label medium" for="" style="color:#ff6600;">对应拉勾职能：</label>
      <div id="lagou_pos1_show" class="controls" style="display:none;">
         <span id="lagou_id_pos_type_html">请选择职能类别</span>
         <a class="medium poseditbtn" data-source="lagou" data-seq="1" href="javascript:;" id="edit_lagou_pos1"><img src="/images/3/greenedit.png"></a>
      </div>

      <div id="lagou_pos1_edit" class="controls" style="display:block;">
         <input autocomplete="off" type="text" name="lagou_id_pos_type_text" id="lagou_id_pos_type_text" class="input-xlarge showposcateg required" style="cursor:pointer;"  data-type="lagou_id_pos_type" data-source="lagou" readonly value="" disabled="disabled"/>
         <a href="javascript:;" class="btn showposcateg" data-type="lagou_id_pos_type" data-source="lagou" id="selectwork_lagou_btn1">选择</a>
         <label for="lagou_id_pos_type_text" class="error" style="display:none">该项必须填写</label>
      </div>

      <input autocomplete="off" type="hidden" name="lagou_id_pos_type" id="lagou_id_pos_type" value="" />
   </div>
   
   <!-- start jiancai zhineng-1 -->
   <div id="jiancai_pos_div1" class="control-group" style="display:none;">
      <label class="control-label medium" for="" style="color:#ff6600;">对应建才职能1：</label>
      <div id="jiancai_pos1_show" class="controls" style="display:none;">
         <span id="jiancai_id_pos_type_html">请选择职能类别</span>
         <a class="medium poseditbtn" data-source="jiancai" data-seq="1" href="javascript:;" id="edit_jiancai_pos1"><img src="/images/3/greenedit.png"></a>
      </div>
      <div id="jiancai_pos1_edit" class="controls" style="display:block;">
         <input autocomplete="off" type="text" name="jiancai_id_pos_type_text" id="jiancai_id_pos_type_text" class="input-xlarge showposcateg required" style="cursor:pointer;"  data-type="jiancai_id_pos_type" data-source="jiancai" readonly value="" disabled="disabled"/>
         <a href="javascript:;" class="btn showposcateg" data-type="jiancai_id_pos_type" data-source="jiancai" id="selectwork_jiancai_btn1">选择</a>
         <label for="jiancai_id_pos_type_text" class="error" style="display:none">该项必须填写</label>
      </div>
      <input autocomplete="off" type="hidden" name="jiancai_id_pos_type" id="jiancai_id_pos_type" value="" />
   </div>
   <!-- end jiancai zhineng-1 -->

     <div class="control-group">
       <label class="control-label" for="">职能类别2：</label>
       <div class="controls">
         <input autocomplete="off" type="hidden" name="id_pos_type2" id="id_pos_type2" value="<?php echo $type=='add' ? '' : $jobdetails->id_pos_type2;?>">
         <input autocomplete="off" type="text" style="cursor:pointer;" name="id_pos_type2_text" id="id_pos_type2_text" data-type="id_pos_type2" data-source="pipapai" value="<?php echo $type=='add' ? '' : $jobdetails->position2;?>" readonly class="input-xlarge showposcateg"/>
         <a href="javascript:;" data-type="id_pos_type2" data-source="pipapai" id="selectwork_btn2" class="btn showposcateg">选择</a>
       </div>
     </div>

   <div id="zhilian_pos_div2" class="control-group" style="display:none;">
      <label class="control-label medium" for="" style="color:#ff6600;">对应智联职能2：</label>
      <div id="zhilian_pos2_show" class="controls" style="display:none;">
         <span id="zhilian_id_pos_type2_html">请选择职能类别</span>
         <a class="medium poseditbtn" data-source="zhilian" data-seq="2" href="javascript:;" id="edit_zhilian_pos2"><img src="/images/3/greenedit.png"></a>
      </div>

      <div id="zhilian_pos2_edit" class="controls" style="display:block;">
         <input autocomplete="off" type="text" name="zhilian_id_pos_type2_text" id="zhilian_id_pos_type2_text" class="input-xlarge showposcateg" style="cursor:pointer;"  data-type="zhilian_id_pos_type2" data-source="zhilian" readonly value="" disabled="disabled"/>
         <a href="javascript:;" class="btn showposcateg" data-type="zhilian_id_pos_type2" data-source="zhilian" id="selectwork_zhilian_btn2">选择</a>
      </div>

      <input autocomplete="off" type="hidden" name="zhilian_id_pos_type2" id="zhilian_id_pos_type2" value="" />
   </div>
   
   <!-- start jiancai zhineng-2 -->
   <div id="jiancai_pos_div2" class="control-group" style="display:none;">
      <label class="control-label medium" for="" style="color:#ff6600;">对应建才职能2：</label>
      <div id="jiancai_pos2_show" class="controls" style="display:none;">
         <span id="jiancai_id_pos_type2_html">请选择职能类别</span>
         <a class="medium poseditbtn" data-source="jiancai" data-seq="2" href="javascript:;" id="edit_jiancai_pos2"><img src="/images/3/greenedit.png"></a>
      </div>
      <div id="jiancai_pos2_edit" class="controls" style="display:block;">
         <input autocomplete="off" type="text" name="jiancai_id_pos_type2_text" id="jiancai_id_pos_type2_text" class="input-xlarge showposcateg" style="cursor:pointer;"  data-type="jiancai_id_pos_type2" data-source="jiancai" readonly value="" disabled="disabled"/>
         <a href="javascript:;" class="btn showposcateg" data-type="jiancai_id_pos_type2" data-source="jiancai" id="selectwork_jiancai_btn2">选择</a>
      </div>
      <input autocomplete="off" type="hidden" name="jiancai_id_pos_type2" id="jiancai_id_pos_type2" value="" />
   </div>
   <!-- end jiancai zhineng-2 -->
   
     <div class="control-group">
       <label class="control-label" for=""><em class="redstar">*</em> 月<em class="nbspem"></em>薪：</label>
       <div class="controls">
       <?php 
          $list_salary_type = JobHelper::getSelectTypeSalary('id_salary_type',$type=='add' ? '' : $jobdetails->id_salary_type,'', '', "id_salary_type");
          echo $list_salary_type;
       ?>
       </div>
     </div>
     <div id="lagou_salary_div"  class="control-group" style="display:none;">
       <label class="control-label medium" for="" style="color:#ff6600;"><em class="redstar">*</em>对应拉勾月薪：</label>
       <div class="controls">
         <input autocomplete="off" type="text" id="lagou_salaryrange" name="salarymin" value="<?php echo $type=='add' || empty($jobdetails->salarymin) ? '' : $jobdetails->salarymin;?>" class="startsalary salaryrange input-small"/> <span class="medium">K</span> 到 <input autocomplete="off" id="lagou_salaryrange" name="salarymax" type="text" value="<?php echo $type=='add' || empty($jobdetails->salarymax) ? '' : $jobdetails->salarymax;?>" class="endsalary salaryrange input-small"/> <span class="medium">K</span>
         <label for="lagou_salaryrange" class="error" generated="true" style="display:none"></label>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">工作年限：</label>
       <div class="controls">
       <?php 
          $list_job_exp = JobHelper::getSelectExpLevel('id_job_exp',$type=='add' ? '' : $jobdetails->id_job_exp);
          echo $list_job_exp;
       ?>
       </div>
     </div>
   </div>
   
   <div class="form-horizontal editaccount_section pull-left" style="width:530px; margin-bottom:0px;">
     <div class="control-group">
       <label class="control-label key" for="">职位编号：</label>
       <div class="controls">
         <input autocomplete="off" type="text" name="job_number" value="<?php echo $type=='add' || empty($jobdetails->job_number) ? '' : $jobdetails->job_number;?>" class="input-xlarge"/>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">部<em class="nbspem"></em>门：</label>
       <div class="controls">
         <input autocomplete="off" type="text" name="department" value="<?php echo $type=='add' ? '' : $jobdetails->department;?>" class="input-xlarge"/>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">语<em class="nbspem" style="padding:0 10px;"></em>言1：</label>
       <div class="controls">
       <?php 
          $list_job_exp = JobHelper::getSelectTypeFL('id_fl1',$type=='add' ? '' : $jobdetails->id_fl1,'');
          echo $list_job_exp;
          $list_job_exp = JobHelper::getSelectTypeFLLevel('id_fl_level1',$type=='add' ? '' : $jobdetails->id_fl_level1,'');
          echo $list_job_exp;
       ?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">语<em class="nbspem" style="padding:0 10px;"></em>言2：</label>
       <div class="controls">
       <?php 
          $list_job_exp = JobHelper::getSelectTypeFL('id_fl2',$type=='add' ? '' : $jobdetails->id_fl2,'');
          echo $list_job_exp;
          $list_job_exp = JobHelper::getSelectTypeFLLevel('id_fl_level2',$type=='add' ? '' : $jobdetails->id_fl_level2,'');
          echo $list_job_exp;
       ?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">年<em class="nbspem"></em>龄：</label>
       <div class="controls">
         <input autocomplete="off" type="text" id="agerange" name="agefrom" value="<?php echo $type=='add' || empty($jobdetails->agefrom) ? '' : $jobdetails->agefrom;?>" class="startage agerange input-small"/> <span class="medium">到</span> <input autocomplete="off" id="agerange" name="ageto" type="text" value="<?php echo $type=='add' || empty($jobdetails->ageto) ? '' : $jobdetails->ageto;?>" class="endage agerange input-small"/>
         <label for="agerange" class="error" generated="true" style="display:none"></label>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">学历要求：</label>
       <div class="controls">
       <?php 
           $list_degree_level= JobHelper::getSelectDegreeLevel('id_degree_level',$type=='add' ? '' : $jobdetails->id_degree_level,'');
           echo $list_degree_level;
       ?>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for="">工作性质：</label>
       <div class="controls">
         <label class="radio inline">
            <input autocomplete="off" type="radio" name="employment_type" <?php echo (isset($jobdetails->employment_type) && ($jobdetails->employment_type == '100')) ? 'checked' : '';?> value="100"> 不限
         </label>
         <label class="radio inline">
            <input autocomplete="off" type="radio" name="employment_type" <?php echo (isset($jobdetails->employment_type) && ($jobdetails->employment_type != '0')) ? '' : 'checked';?> value="0"> 全职
         </label>
         <label class="radio inline">
            <input autocomplete="off" type="radio" name="employment_type" <?php echo (isset($jobdetails->employment_type) && ($jobdetails->employment_type == '1')) ? 'checked' : '';?> value="1"> 兼职
         </label>
         <label class="radio inline">
            <input autocomplete="off" type="radio" name="employment_type" <?php echo (isset($jobdetails->employment_type) && ($jobdetails->employment_type == '2')) ? 'checked' : '';?> value="2"> 实习
         </label>
       </div>
     </div>
     
   </div>
   
   <div class="form-horizontal editaccount_section pull-left" style="width:100%; margin-top:0px;">
     <div class="control-group">
       <label class="control-label key" for="">职位关键字：</label>
       <div class="controls">
         <input autocomplete="off" type="text" name="keywords" value="<?php echo $type=='add' ? '' : $jobdetails->keywords;?>" style="width:400px;"/>
       </div>
     </div>
     <div id="lagou_advantage_div"  class="control-group" style="display:none;">
       <label class="control-label medium" for="" style="color:#ff6600;"><em class="redstar">*</em>职位诱惑：</label>
       <div class="controls">
         <input autocomplete="off" id="lagou_positionadvantage" class="lagou_positionadvantage" type="text" name="lagou_positionadvantage" value="<?php echo $type=='add' ? '' : $jobdetails->positionadvantage;?>" style="width:400px;"/>
         <label for="lagou_positionadvantage" class="error" generated="true" style="display:none"></label>
       </div>
     </div>
     <div id="lagou_address_div"  class="control-group" style="display:none;">
       <label class="control-label medium" for="" style="color:#ff6600;"><em class="redstar">*</em>工作地址：</label>
       <div class="controls">
         <input autocomplete="off" type="text" name="lagou_positionaddress" value="<?php echo $type=='add' ? '' : $jobdetails->positionaddress;?>" style="width:400px;"/>
       </div>
     </div>
     <div class="control-group">
       <label class="control-label" for=""><em class="redstar">*</em> 职位描述：</label>
       <div class="controls">
         <?php
            if ($type != 'add') {
               $jobdetails->long_desc = $jobdetails->long_desc ? htmlspecialchars_decode($jobdetails->long_desc) : $jobdetails->long_desc;
               $jobdetails->long_desc = preg_match("/<[^<]+>/", $jobdetails->long_desc, $m) != 0 ? $jobdetails->long_desc : nl2br($jobdetails->long_desc);
            }
            $textarea =  $editor->display('long_desc',($type=='add' ? '' : $jobdetails->long_desc) ,'650', '170', '75', '10', false, null, null, null, $params);
            echo $textarea; 
         ?>
         <div class="medium" style="color:#999">如任职资格、技能要求、团队及文化描述</div>
       </div>
     </div>
     <div class="control-group">
       <div class="controls">
         <span class="lastactionbtn"><a href="javascript:;" id="postjobconfirm" class="ppp_bluebtn sure">确认</a></span>
         <span class="lastactionbtn"><a href="javascript:;" id="<?php echo $type=='add' ? 'postjobback' : 'postjobcancel';?>" style="width:33px;">取消</a></span>
         <span class="error systemerror" style="vertical-align:middle;"></span>
       </div>
     </div>
   </div>
</div>
</form>
            
<!--  选择职能 dialog  -->         
<div class="modal hide fade resume_dialogposition selectwork_dialog" style="position:absolute;" id="selectwork_dialog">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h3>请选择职能</h3>
   </div>
   <input type="hidden" id="select_work_id">
   <input type="hidden" id="select_work_text">
   <div class="modal-body">

   </div>
   <div class="modal-footer nobgcolor">
      <a href="javascript:;" class="btn removeselected">清空选择</a>
   </div>
</div>


<!--  选择城市 dialog  -->
<div class="modal hide fade resume_dialogposition selectcity_dialog" id="selectcity_dialog" style="position:absolute;">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h3>请选择城市</h3>
   </div>
   <div class="modal-body">

   </div>
   <div class="modal-footer nobgcolor">
      <a href="javascript:;" class="btn" id="selectcitycancel">清空选择</a>
      <a href="javascript:;" id="selectcityconfirm" class="btn btn-info">确认</a>
   </div>
     
</div>

